<template>
    <p>id:{{  }}</p>
    <p>name:{{  }}</p>
    <p>age:{{  }}</p>
</template>

<script lang="ts">
export default {
    name: 'Hello'
}
</script>

<!--setup语法糖-->
<script setup lang="ts">
//引入
import type { person,ps } from '@/type';
import { ref, defineExpose } from 'vue'

let p1: person = { id: 1, name: 'zs', age: 20 }
let p2: Array<person> = [{ id: 1, name: 'zs', age: 20 }, { id: 2, name: 'ls', age: 19 }]
let p3: ps = [{ id: 1, name: 'zs', age: 20 }, { id: 2, name: 'ls', age: 19 }]    

</script>